-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sap_swpm: manage sap_swpm_db_schema_abap_password in hdbuserstore #802
base: dev
Are you sure you want to change the base?
Conversation
@rob0d @sean-freeman @remrozk After merging #748, what are your thoughts about the alternative approach suggested here (defaulting to |
@berndfinger I am not in favour of creating defaulting "symlink" (kinda) approach between passwords in the long-term; I'd rather have a new Ansible Task We already have technical debt in this regard dating from the init commit: |
Hi guys, Two points/comments:
|
Hi guys, If there is no known reason for this code block, then yes, removing it is the best solution. SAP NW 7.5 and SAP S/4HANA create the required key to enable the connection between the AS with the DB during the SWPM process. Are you okay with pushing a new commit to remove this block code and run some non-regression tests? |
|
@remrozk Can you please test whether the following added to - name: SAP SWPM Pre Install - Set fact for any blank passwords to use master password
ansible.builtin.set_fact:
"{{ empty_password_var }}": "{{ sap_swpm_master_password }}"
loop:
- sap_swpm_db_schema_abap_password
- sap_swpm_db_schema_java_password
- sap_swpm_db_schema_password
- sap_swpm_db_sidadm_password
- sap_swpm_db_system_password
- sap_swpm_db_systemdb_password
- sap_swpm_ddic_000_password
- sap_swpm_diagnostics_agent_password
- sap_swpm_master_password
- sap_swpm_sap_sidadm_password
- sap_swpm_sapadm_password
- sap_swpm_tmsadm_password
- sap_swpm_ume_j2ee_admin_password
- sap_swpm_ume_j2ee_guest_password
- sap_swpm_ume_sapjsf_password
- sap_swpm_wd_backend_rfc_user_password
loop_control:
loop_var: empty_password_var
when: empty_password_var is undefined or empty_password_var == "" |
@sean-freeman In addition to this task, should I remove the task Because, if I don't remove the task |
Hi @sean-freeman.
|
@sean-freeman Sorry for the misunderstanding. My reflections were based on the main branch, not the dev branch. My apologies. As requested, I tested the I had to fix a regression in the The backslash (\) was excessive. In my case, the Below, the task fixed:
|
@sean-freeman I made additional tests.
Otherwise, it never matches.
Below a run example with the
Below a run example with the
The content of - name: Playbook - SAP installation
hosts: all
become: true
gather_facts: false
any_errors_fatal: false
tasks:
- name: Debug
ansible.builtin.debug:
msg: "sap_swpm_db_schema_abap_password: {{ sap_swpm_db_schema_abap_password }}"
when: sap_swpm_db_schema_abap_password is defined
- name: SAP SWPM Pre Install - Set fact for any blank passwords to use master password
ansible.builtin.set_fact:
"{{ empty_password_var }}": "{{ sap_swpm_master_password }}"
loop:
- sap_swpm_db_schema_abap_password
loop_control:
loop_var: empty_password_var
when: loop_var is undefined or loop_var == ""
- name: Debug
ansible.builtin.debug:
msg: "sap_swpm_db_schema_abap_password: {{ sap_swpm_db_schema_abap_password }}"
when: sap_swpm_db_schema_abap_password is defined |
In the case where the
sap_swpm_db_schema_abap_password
variable is set, theDEFAULT
key is set with the wrong passwordsap_swpm_db_system_password
.With the modification, the code handles both cases correctly